package org.lex.dbq.model.bo;

import java.util.ArrayList;
import java.util.List;

public class JdbcUrlTemplate extends CommonObject {
	private DriverConfig driver = null;
	private String template = "";
	private List<Variable> variables = new ArrayList<Variable>();

	public DriverConfig getDriver() {
		return driver;
	}

	public void setDriver(DriverConfig driver) {
		this.driver = driver;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public JdbcUrlTemplate addVadiable(Variable var) {
		variables.add(var);
		return this;
	}

	public List<Variable> getVariables() {
		return variables;
	}
}
